package com.example.shop.service;

import com.example.shop.domain.Product;

import java.util.List;

public interface ProductService {

    /*根据商品id  查询商品*/
    Product findOne(String productId);

    Product save(Product product);

    List<Product> findAll();

    /*加库存*/
    void increaseStock(Product product,Integer quantity);

    /*减库存*/
    void decreaseStock(Product product,Integer quantity);
}
